import { FC, ReactNode } from "react";

interface IconProps {
  children?: ReactNode;
  size?: number;
}

const Icon: FC<IconProps> = ({ children, size = 24 }) => {
  const width = `${size || 24}px`;

  return (
    <svg className="core-icon" height={width} viewBox="0 0 24 24" width={width}>
      {children}
    </svg>
  );
};

export default Icon;
